home *** CD-ROM | disk | FTP | other *** search
-
- Anfy Lake 1.0 - Copyright (C) by Fabio Ciucci 1998
-
-
- This applet can generate a reflection effect under any GIF or JPG image.
- It is very similiar to Lake and DorianGray applets made by other authors,
- but this one has a different approach since it it calculated in realtime,
- so it require less memory (about 10 times less!).
- I made a similiar effect on 1990 on Amiga computers using assembler language,
- so I think I haven't copied this idea to others that made it in java lately,
- in 1996-97.
- Remember that are needed both AnLake.class , Lware.class and anfy.class.
- You must upload these 3 .class files and insert the <applet> tag on your
- html document to add this applet to your page.
- This applet is fully parametrized, so you can generate all kinds of lakes
- you want. Here an example of what you have to write in the html (the
- things anfter the ; are comments with min-max values acceptet):
-
-
- <applet code="AnLake.class" width=300 height=256> ; Name, Width, Height
- <param name=credits value="Applet by Fabio Ciucci (www.anfiteatro.it/java.html)">
- <param name=regcode value="NO"> ; Register code (if you have it)
- <param name=reglink value="NO"> ; URL where go optionally when clicked
- <param name=regnewframe value="YES"> ; Reglink opened in new frame?
- <param name=statusmsg value="AnLake applet"> ; Statusbar message
- <param name=res value="1"> ; resolution (1 .. 8)
- <param name=image value="palio.jpg"> ; Image to load
- <param name=textscroll value="NO"> ; File for scrolltext or "NO"
- <param name=wavspeed value="30"> ; Speed of waving (1..200)
- <param name=perspective value="10"> ; Perspective (1..100)
- <param name=farwaving value="200"> ; Far waving intensity (1..10000)
- <param name=wind value="10"> ; Wind intensity (1..20)
- <param name=windvarval value="5"> ; Wind variation speed (0..200)
- <param name=windvarmin value="5"> ; Wind variation min (0..20)
- <param name=windvarmax value="15"> ; Wind variation max (0..20)
- <param name=textscroll value="NO"> ; File for scrolltext or "NO"
- <param name=textoffset value="140"> ; Txtscroll y offset
- <param name=textspeed value="1"> ; Txtscroll speed
- <param name=textfont value="Arial"> ; Txtscroll font name
- <param name=textbold value="NO"> ; Txtscroll bold ("YES" or "NO")
- <param name=textsize value="24"> ; Txtscroll font size
- <param name=textshadow value="YES"> ; Txtscroll shadow ("YES" or "NO")
- <param name=TextColR value="200"> ; Txtscroll color (red component)
- <param name=TextColG value="255"> ; Txtscroll color (green component)
- <param name=TextColB value="190"> ; Txtscroll color (blue component)
- <param name=TextSColR value="20"> ; Txtscroll shadow col. (red c.)
- <param name=TextSColG value="20"> ; Txtscroll shadow col. (green c.)
- <param name=TextSColB value="50"> ; Txtscroll shadow col. (blue c.)
- <param name=TextJumpAmp value="0"> ; Txtscroll jump aplitude
- <param name=TextJumpSpd value="0"> ; Txtscroll jump speed
- <param name=TextSineAmp value="0"> ; Txtscroll sineshape amplitude
- <param name=TextSineSpd value="0"> ; Txtscroll sineshape movement
- <param name=TextSineAngle value="0"> ; Txtscroll sineangle / pixel
- <param name=memdelay value="1000"> ; Memory deallocation delay
- <param name=priority value="3"> ; Task priority (1..10)
- <param name=MinSYNC value="10"> ; Min. milliseconds/frame for sync
- Sorry, your browser doesn't suppor Java. ; Msg in no java browsers
- </applet>
-
- ---------
-
- Here detailed instructions about how to change parameters:
-
- The credits parameter can't be changed otherwise the applet will not work.
- For the reg parameters read the shareware registration notes at end of text.
-
- The GIF/JPG image can be of any size.
- The aplet size must me same of image in width, double in height: for example,
- if the image is 160x100, applet size must be 160x200.
-
- If res=1, remember to place the exact size of image in "width" and "height"
- tags, with height multiplied by 2.
- If res=2, place double values of width and quadruple of height, if res=3
- triple values of width, sit times the height, etc.
- In fact, res is a sort of zoomer.
-
- With "wavspeed" parameter (values from 1 to 200) you decide the speed of
- waving.
-
- With "perspective" parameter (values from 1 to 100) you decide how the waves
- have to be stretched for perspective simulation.
-
- The "farwaving" parameter (values from 1 to 10000) you decide how string the
- far waves (top of lake) must be.
-
- With "wind" parameter (values from 1 to 20) you decide how string the waving
- will be.
-
- Optionally, you can make the wind dynamically change, setting the
- parameter "windvarval" as more than 0 (higher values mean higher change).
- Then, with the parameters "windvarmin" and "windvarmax" you can control the
- min and max values of wind reached.
-
-
-